package com.cardone.platform.common.util;

import java.util.List;

import com.cardone.common.cache.util.CacheUtils;
import com.cardone.context.ContextHolder;
import com.cardone.context.function.Execution0Function;
import com.cardone.platform.common.service.CommonService;
import com.cardone.platform.configuration.util.SiteUtils;

/**
 * 公共工具类
 * 
 * @author yaohaitao
 *
 */
public class CommonUtils {
	/**
	 * 读取集合
	 * 
	 * @return bean函数名称集合
	 */
	public static List<String> readListProxyFunctionName() {
		List<String> beanFunctionNameList = CacheUtils.getCacheValue(SiteUtils.class.getName(), "readListBeanFunctionName", new Execution0Function<List<String>>() {
			@Override
			public List<String> execution() {
				return ContextHolder.getBean(CommonService.class).readListProxyFunctionName();
			}
		});

		return beanFunctionNameList;
	}
}
